import React from 'react';

import BaseAction from '../common/BaseAction';
import Constants from '../../common/Constants';

//某个人的私聊记录
export default class HeartSecretRequestChatOneAction extends BaseAction {
    constructor() {
      super();

      this.moduleType = Constants.MODULE_TYPE.HEART;
      this.name = "HeartSecretRequestChatOneAction";
    }

    finish(data, isSucceed, response) {
      if(isSucceed) {
        this.caller.requestFinish(data, isSucceed && data != null && data.length != 0);
      }
      else {
        this.caller.requestFinish([], false);
        if(response && response.status == 401) {
          this._dealUnauthorized(this.caller);
        }
      }
    }
}
